const DB = require('../utils/db')
const UserModel = require('./user.model')
const TokenModel = require('./token.model')
const CodeModel = require('./code.model')
const TaskModel = require('./task.model')
const CollectionModel = require('./collection.model')
const TaskMapModel = require('./task-map.model')
const DocModel = require('./doc.model')
const DocTocModel = require('./doc-toc.model')
const PostModel = require('./post.model')

module.exports = {
  user: new UserModel('t_users', DB),
  token: new TokenModel('t_tokens', DB),
  code: new CodeModel('t_codes', DB),
  task: new TaskModel('t_tasks', DB),
  collection: new CollectionModel('t_collections', DB),
  taskMap: new TaskMapModel('t_task_map', DB),
  doc: new DocModel('t_docs', DB),
  docToc: new DocTocModel('t_doc_tocs', DB),
  post: new PostModel('t_posts', DB)
}
